package com.yangwei.examination.teacher.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.util.StringUtils;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PaperQuestion implements Serializable {  //用于深度拷贝
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long paperId;
    private String questionTitle;
    private String questionType;
    private int questionOrder;
    @TableField(exist = false)
    private List<PaperQuestionChoice> paperQuestionChoiceList;
    @TableField(exist = false)
    private List<PaperQuestionAnswer> paperQuestionAnswerList;
    @TableField(exist = false)
    private String selected;
    //当前题目得分
    @TableField(exist = false)
    private Integer score;

}
